package cn.rui.pojo;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author 徽州大都督
 * @date 2021/4/16
 */
@Data
public class AuthorityPoint implements GrantedAuthority {


    private String authorityId;

    public AuthorityPoint() {
    }

    //表示该类的authorityId属性作为权限名
    @Override
    public String getAuthority() {
        return authorityId;
    }
}
